﻿
namespace lcwb.Shared.Api
{
    public class ApiResponse<T>
    {
        public bool isSuccess { get; set; }
        public string Message { get; set; }
        public T Data { get; set; }
        public static ApiResponse<T> Success(T data)
        => new() { isSuccess = true, Data = data };

        public static ApiResponse<T> Error(string message)
            => new() { isSuccess = false, Message = message };
    }
}
